﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Eagle.Web.TagFactory
{
    /// <summary>
    /// Script标签生成类
    /// </summary>
    public class Script
    {
        /// <summary>
        /// 生成Script标签
        /// </summary>
          /// <param name="src">地址</param>
        /// <param name="properties">其他属性</param>
        /// <returns></returns>
        public static string Create(string src, string properties)
        {
            return "<script language=\"javascript\" type=\"text/javascript\" src=\"" + src + "\" " + properties + " ></script>";
        }

        /// <summary>
        /// 生成Script标签
        /// </summary>
        /// <param name="src">地址</param>
        /// <returns></returns>
        public static string Create(string src)
        {
            return Create(src, "");
        }
    }
}
